package com.himiotech.core.framework.helper.exception;

import cn.hutool.core.util.StrUtil;

/**
 * @author wuwenbin
 */
public class HimioException extends RuntimeException {

    public HimioException(String message) {
        super(message);
    }

    public HimioException(String message, Object... args) {
        super(StrUtil.format(message, args));
    }

    public HimioException(Throwable cause) {
        super(StrUtil.isEmpty(cause.getMessage()) ? "服务器开小差了，请稍候再试" : cause.getMessage());
    }

}
